/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cardgame.game.monsters;

import cardgame.game.*;
import cardgame.game.events.*;

/**
 *
 * @author Carl
 */
public class Maokai extends MonsterCard{

    public Maokai(){
        description = new Description("Maokai", "I'm a tree and when you summon me, set my attack damage to the amount of available green mana and my lifepoints to the total amount of green mana under your control.");
        manaTypes = new Mana[]{Mana.GREEN};
        summonCost = new Cost(new ManaAmount(Mana.GREEN, 2), 0, false);
    }

    @Override
    public void onSummon(){
        super.onSummon();
        attackDamage = owner.getManaPool().getAvailableAmount().getMana(Mana.GREEN);
        game.triggerEvent(new AddMonsterMaximumLifepointsEvent(this, owner.getManaPool().getTotalAmount().getMana(Mana.GREEN)));
    }
}
